package com.cheyun.netsalev3.bean.records

import androidx.databinding.BaseObservable
import androidx.databinding.Bindable
import com.cheyun.netsalev3.BR
import com.cheyun.netsalev3.bean.FailInfo
import java.io.Serializable

data class Follow(
        val id: Int,
        //failure战败 ，   reserve试驾， receive 到店 call通话，
        //handover移交,  deal锁单成交，invite 邀约  transfer流转，follow跟进， touch触达，  create 建档
        val type: String,
        val tid: Int,
        val dateline: String,//旅程时间戳
        val state: String,//线索状态
        val state_name: String, //线索状态名称
        val ownername: String,//线索拥有者
        val addname: String, //操作人
        val content: String,//消息描述
        val customerlevelname: String, //意向等级名称
        val is_arrive:String, //是否到店
        val fail_info:FailureRecord,//战败
        val reserve_info:Reserve,//试驾
        val arrive_info:Receive,//到店
        val call_info:Call//通话

) : Serializable, BaseObservable() {
    @get:Bindable
    var show: Boolean = false
        set(value) {
            field = value
            notifyPropertyChanged(BR.show)

        }

    var typeId:Int = 0
    var typeName:String = ""
}